/* 
 * File:   ChildProcessQuitHandler.h
 * Author: dell
 *
 * Created on 2012年4月9日, 下午8:42
 */

#ifndef CHILDPROCESSQUITHANDLER_H
#define	CHILDPROCESSQUITHANDLER_H

#include "common.h"
#include "ProcessQuitSignal.h"
#include <evhttp/events.h>

namespace Rapid{
    class ChildProcessQuitHandler : public ProcessQuitSignal{
    public:
        ChildProcessQuitHandler();
        virtual ~ChildProcessQuitHandler();
        
    protected:  
        bool onProcessSignalEvent(const ProcessSignalEvent* e);
        bool onTimerEvent(const TimerEvent* e);
        
    private:
        void executeClose();
    private:
        int repeat;
    };

}
#endif	/* CHILDPROCESSQUITHANDLER_H */

